package com.cds.alert.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cds.alert.dao.AlertAlarmBbsMapper;
import com.cds.alert.ibatis.Criteria;
import com.cds.alert.pojo.AlertAlarmBbs;
import com.cds.alert.service.AlertAlarmBbsService;

@Service("alertAlarmBbsService")
public class AlertAlarmBbsServiceImpl implements AlertAlarmBbsService {

	@Autowired
	private AlertAlarmBbsMapper alertAlarmBbsMapper;
	
	public void insert(AlertAlarmBbs entity) {
		alertAlarmBbsMapper.insert(entity);
	}

	@Transactional(readOnly = true)
	public List<AlertAlarmBbs> queryByExample(Criteria example) {
		return alertAlarmBbsMapper.queryByExample(example);
	}

}
